import request from '@/utils/request'

// 获取角色列表
export function getRoleList(page, limit) {
  return request({
    url: `/admin/acl/role/${page}/${limit}`,
    method: 'get'
  })
}

// 添加角色
export function saveRole(roleName) {
  return request({
    url: `/admin/acl/role/save`,
    method: 'post',
    data: {
      roleName
    }
  })
}

// 删除角色
export function removeRole(id) {
  return request({
    url: `/admin/acl/role/remove/${id}`,
    method: 'delete'
  })
}
